﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Food
{
    public interface IFoodServing
    {
        void AddFoodServing(Model.FoodServing serving, ref Model.NutriLeafDBEntities context);

        void AddFoodServing(int foodId, string description, float metricServingAmount, string metricServingUnit, float numberOfUnits, string measurementDescription, int nutritionId, ref Model.NutriLeafDBEntities context);

        void RemoveFoodServing(int foodServingId, ref Model.NutriLeafDBEntities context);

        List<Model.FoodServing> GetFoodServingFromFood(int foodId, ref Model.NutriLeafDBEntities context);

        void UpdateFoodServing(Model.FoodServing foodserving, ref Model.NutriLeafDBEntities context);

        Model.FoodServing GetFoodServing(int foodServingId, ref Model.NutriLeafDBEntities context);
    }
}